gradient: Add color stops to the right gradient
authorBenjamin Otte <otte@redhat.com>
Tue, 6 Nov 2012 19:51:29 +0000 (20:51 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 6 Nov 2012 20:29:58 +0000 (21:29 +0100)
This was causing an infinite loop happily eating up memory.

https://bugzilla.gnome.org/show_bug.cgi?id=687467

gtk/gtkgradient.c

index d6d71323731cab94948e4f772bee7ec04df5d300..8c779d8152a0d23592e76a528557ce154e441ff7 100644 (file)
@@ -468,7 +468,7 @@ gtk_gradient_fade (GtkGradient *gradient,
 
       stop = &g_array_index (gradient->stops, ColorStop, i);
       color = gtk_symbolic_color_new_alpha (stop->color, opacity);
-      gtk_gradient_add_color_stop (gradient, stop->offset, color);
+      gtk_gradient_add_color_stop (faded, stop->offset, color);
       gtk_symbolic_color_unref (color);
     }